package com.ruoyi.system.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.entity.PushFailedLoger;
import com.ruoyi.system.service.PushFailedLogerService;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (PushFailedLoger)表控制层
 *
 * @author
 * @since 2023-05-31 16:46:22
 */
@RestController
@RequestMapping("/yhpc/PushFailedLoger")
public class PushFailedLogerController extends BaseController {

    /**
     * 服务对象
     */
    @Resource
    private PushFailedLogerService pushFailedLogerService;

    /**
     * 分页查询
     *
     * @param pushFailedLoger 筛选条件
     * @return 查询结果
     */
    @ApiOperation("推送数据列表")
    @GetMapping("/list")
    public TableDataInfo queryByPage(PushFailedLoger pushFailedLoger) {
        startPage();
        List<PushFailedLoger> pushFailedLogers = this.pushFailedLogerService.queryByPage(pushFailedLoger);
        return getDataTable(pushFailedLogers);
    }
}

